Integrand size = 33, antiderivative size = 261 \[ \int \frac {\cos ^4(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^{3/2}} \, dx=-\frac {(15 A-19 B) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \cos (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{2 d (a+a \cos (c+d x))^{3/2}}+\frac {(651 A-799 B) \sin (c+d x)}{105 a d \sqrt {a+a \cos (c+d x)}}+\frac {(63 A-67 B) \cos ^2(c+d x) \sin (c+d x)}{70 a d \sqrt {a+a \cos (c+d x)}}-\frac {(7 A-11 B) \cos ^3(c+d x) \sin (c+d x)}{14 a d \sqrt {a+a \cos (c+d x)}}-\frac {(273 A-397 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{210 a^2 d} \]
[Out]
Time = 0.93 (sec) , antiderivative size = 261, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.212, Rules used = {3056, 3062, 3047, 3102, 2830, 2728, 212} \[ \int \frac {\cos ^4(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^{3/2}} \, dx=-\frac {(15 A-19 B) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a \cos (c+d x)+a}}\right )}{2 \sqrt {2} a^{3/2} d}-\frac {(273 A-397 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{210 a^2 d}+\frac {(A-B) \sin (c+d x) \cos ^4(c+d x)}{2 d (a \cos (c+d x)+a)^{3/2}}-\frac {(7 A-11 B) \sin (c+d x) \cos ^3(c+d x)}{14 a d \sqrt {a \cos (c+d x)+a}}+\frac {(63 A-67 B) \sin (c+d x) \cos ^2(c+d x)}{70 a d \sqrt {a \cos (c+d x)+a}}+\frac {(651 A-799 B) \sin (c+d x)}{105 a d \sqrt {a \cos (c+d x)+a}} \]
[In]
[Out]
Rule 212
Rule 2728
Rule 2830
Rule 3047
Rule 3056
Rule 3062
Rule 3102
Rubi steps \begin{align*} \text {integral}& = \frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{2 d (a+a \cos (c+d x))^{3/2}}+\frac {\int \frac {\cos ^3(c+d x) \left (4 a (A-B)-\frac {1}{2} a (7 A-11 B) \cos (c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx}{2 a^2} \\ & = \frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{2 d (a+a \cos (c+d x))^{3/2}}-\frac {(7 A-11 B) \cos ^3(c+d x) \sin (c+d x)}{14 a d \sqrt {a+a \cos (c+d x)}}+\frac {\int \frac {\cos ^2(c+d x) \left (-\frac {3}{2} a^2 (7 A-11 B)+\frac {1}{4} a^2 (63 A-67 B) \cos (c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx}{7 a^3} \\ & = \frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{2 d (a+a \cos (c+d x))^{3/2}}+\frac {(63 A-67 B) \cos ^2(c+d x) \sin (c+d x)}{70 a d \sqrt {a+a \cos (c+d x)}}-\frac {(7 A-11 B) \cos ^3(c+d x) \sin (c+d x)}{14 a d \sqrt {a+a \cos (c+d x)}}+\frac {2 \int \frac {\cos (c+d x) \left (\frac {1}{2} a^3 (63 A-67 B)-\frac {1}{8} a^3 (273 A-397 B) \cos (c+d x)\right )}{\sqrt {a+a \cos (c+d x)}} \, dx}{35 a^4} \\ & = \frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{2 d (a+a \cos (c+d x))^{3/2}}+\frac {(63 A-67 B) \cos ^2(c+d x) \sin (c+d x)}{70 a d \sqrt {a+a \cos (c+d x)}}-\frac {(7 A-11 B) \cos ^3(c+d x) \sin (c+d x)}{14 a d \sqrt {a+a \cos (c+d x)}}+\frac {2 \int \frac {\frac {1}{2} a^3 (63 A-67 B) \cos (c+d x)-\frac {1}{8} a^3 (273 A-397 B) \cos ^2(c+d x)}{\sqrt {a+a \cos (c+d x)}} \, dx}{35 a^4} \\ & = \frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{2 d (a+a \cos (c+d x))^{3/2}}+\frac {(63 A-67 B) \cos ^2(c+d x) \sin (c+d x)}{70 a d \sqrt {a+a \cos (c+d x)}}-\frac {(7 A-11 B) \cos ^3(c+d x) \sin (c+d x)}{14 a d \sqrt {a+a \cos (c+d x)}}-\frac {(273 A-397 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{210 a^2 d}+\frac {4 \int \frac {-\frac {1}{16} a^4 (273 A-397 B)+\frac {1}{8} a^4 (651 A-799 B) \cos (c+d x)}{\sqrt {a+a \cos (c+d x)}} \, dx}{105 a^5} \\ & = \frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{2 d (a+a \cos (c+d x))^{3/2}}+\frac {(651 A-799 B) \sin (c+d x)}{105 a d \sqrt {a+a \cos (c+d x)}}+\frac {(63 A-67 B) \cos ^2(c+d x) \sin (c+d x)}{70 a d \sqrt {a+a \cos (c+d x)}}-\frac {(7 A-11 B) \cos ^3(c+d x) \sin (c+d x)}{14 a d \sqrt {a+a \cos (c+d x)}}-\frac {(273 A-397 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{210 a^2 d}-\frac {(15 A-19 B) \int \frac {1}{\sqrt {a+a \cos (c+d x)}} \, dx}{4 a} \\ & = \frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{2 d (a+a \cos (c+d x))^{3/2}}+\frac {(651 A-799 B) \sin (c+d x)}{105 a d \sqrt {a+a \cos (c+d x)}}+\frac {(63 A-67 B) \cos ^2(c+d x) \sin (c+d x)}{70 a d \sqrt {a+a \cos (c+d x)}}-\frac {(7 A-11 B) \cos ^3(c+d x) \sin (c+d x)}{14 a d \sqrt {a+a \cos (c+d x)}}-\frac {(273 A-397 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{210 a^2 d}+\frac {(15 A-19 B) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{2 a d} \\ & = -\frac {(15 A-19 B) \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \cos (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {(A-B) \cos ^4(c+d x) \sin (c+d x)}{2 d (a+a \cos (c+d x))^{3/2}}+\frac {(651 A-799 B) \sin (c+d x)}{105 a d \sqrt {a+a \cos (c+d x)}}+\frac {(63 A-67 B) \cos ^2(c+d x) \sin (c+d x)}{70 a d \sqrt {a+a \cos (c+d x)}}-\frac {(7 A-11 B) \cos ^3(c+d x) \sin (c+d x)}{14 a d \sqrt {a+a \cos (c+d x)}}-\frac {(273 A-397 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{210 a^2 d} \\ \end{align*}
Time = 0.74 (sec) , antiderivative size = 167, normalized size of antiderivative = 0.64 \[ \int \frac {\cos ^4(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^{3/2}} \, dx=\frac {105 (15 A-19 B) \text {arctanh}\left (\sin \left (\frac {1}{2} (c+d x)\right )\right ) \cos ^5\left (\frac {1}{2} (c+d x)\right )-\frac {1}{2} \cos ^3\left (\frac {1}{2} (c+d x)\right ) (1974 A-2161 B+6 (273 A-277 B) \cos (c+d x)+(-84 A+256 B) \cos (2 (c+d x))+42 A \cos (3 (c+d x))-18 B \cos (3 (c+d x))+15 B \cos (4 (c+d x))) \sin \left (\frac {1}{2} (c+d x)\right )}{105 d (a (1+\cos (c+d x)))^{3/2} \left (-1+\sin ^2\left (\frac {1}{2} (c+d x)\right )\right )} \]
[In]
[Out]
Time = 4.92 (sec) , antiderivative size = 448, normalized size of antiderivative = 1.72
method | result | size |
default | \(\frac {\sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (960 B \sqrt {a}\, \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (\sin ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-96 \sqrt {a}\, \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (7 A +17 B \right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+224 \sqrt {a}\, \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (3 A +8 B \right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-35 \sqrt {2}\, \left (48 A \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}-45 A \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a -16 B \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}+57 B \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1575 \sqrt {2}\, \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a A +1995 \sqrt {2}\, \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a B +1785 A \sqrt {a}\, \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}-1785 B \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}\right )}{420 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a^{\frac {5}{2}} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}\) | \(448\) |
parts | \(-\frac {A \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (32 \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}\, \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-32 \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}\, \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+80 \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}\, \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-75 \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a -85 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+75 \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a \right )}{20 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a^{\frac {5}{2}} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}+\frac {B \sqrt {2}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (960 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (\sin ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1632 \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}\, \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1792 \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}\, \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+560 \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {a}\, \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1995 \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a -1785 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+1995 \ln \left (\frac {4 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+4 a}{\cos \left (\frac {d x}{2}+\frac {c}{2}\right )}\right ) a \right )}{420 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a^{\frac {5}{2}} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}\) | \(563\) |
[In]
[Out]
none
Time = 0.33 (sec) , antiderivative size = 241, normalized size of antiderivative = 0.92 \[ \int \frac {\cos ^4(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^{3/2}} \, dx=-\frac {105 \, \sqrt {2} {\left ({\left (15 \, A - 19 \, B\right )} \cos \left (d x + c\right )^{2} + 2 \, {\left (15 \, A - 19 \, B\right )} \cos \left (d x + c\right ) + 15 \, A - 19 \, B\right )} \sqrt {a} \log \left (-\frac {a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {a} \sin \left (d x + c\right ) - 2 \, a \cos \left (d x + c\right ) - 3 \, a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) - 4 \, {\left (60 \, B \cos \left (d x + c\right )^{4} + 12 \, {\left (7 \, A - 3 \, B\right )} \cos \left (d x + c\right )^{3} - 28 \, {\left (3 \, A - 7 \, B\right )} \cos \left (d x + c\right )^{2} + 12 \, {\left (63 \, A - 67 \, B\right )} \cos \left (d x + c\right ) + 1029 \, A - 1201 \, B\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{840 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^{3/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^{3/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Exception generated. \[ \int \frac {\cos ^4(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^{3/2}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^{3/2}} \, dx=\int \frac {{\cos \left (c+d\,x\right )}^4\,\left (A+B\,\cos \left (c+d\,x\right )\right )}{{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{3/2}} \,d x \]
[In]
[Out]